﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MessageUseCase.cs" company="">
//   
// </copyright>
// <summary>
//   The message use case.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.UseCases
{
    using System.Collections.Generic;

    /// <summary>
    ///   The message use case.
    /// </summary>
    public class MessageUseCase : UseCase, IMessageUseCase
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageUseCase"/> class.
        /// </summary>
        /// <param name="parent">
        /// The parent. 
        /// </param>
        /// <param name="service">
        /// The service. 
        /// </param>
        public MessageUseCase(ICompoundUseCase parent, IUseCaseInstanceService service)
            : base(parent, service)
        {
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///   Gets or sets the commands.
        /// </summary>
        public new IEnumerable<CommandDefinition> Commands { get; set; }

        /// <summary>
        ///   Gets or sets the default command.
        /// </summary>
        public CommandDefinition DefaultCommand { get; set; }

        /// <summary>
        ///   Gets or sets the message type.
        /// </summary>
        public MessageType MessageType { get; set; }

        /// <summary>
        ///   Gets or sets the text.
        /// </summary>
        public string Text { get; set; }

        #endregion
    }
}